home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / UUPC11QS.ARJ / BUGOUT.C < prev    next >
C/C++ Source or Header  |  1991-11-21  |  2KB  |  37 lines

  1. /*--------------------------------------------------------------------*/
  2. /*    b u g o u t . c                                                 */
  3. /*                                                                    */
  4. /*    Support routines for UUPC/extended                              */
  5. /*                                                                    */
  6. /*    Changes Copyright 1990, 1991 (c) Andrew H. Derbyshire           */
  7. /*                                                                    */
  8. /*    History:                                                        */
  9. /*       21Nov1991 Break out of lib.c                          ahd    */
  10. /*--------------------------------------------------------------------*/
  11.  
  12. #include <stdio.h>
  13. #include <stdlib.h>
  14. #include <string.h>
  15. #include <time.h>
  16.  
  17. /*--------------------------------------------------------------------*/
  18. /*                    UUPC/extended include files                     */
  19. /*--------------------------------------------------------------------*/
  20.  
  21. #include "lib.h"
  22.  
  23. /*--------------------------------------------------------------------*/
  24. /*    b u g o u t                                                     */
  25. /*                                                                    */
  26. /*    Perform a panic() exit from UUPC/extended                       */
  27. /*--------------------------------------------------------------------*/
  28.  
  29. void bugout( const size_t lineno, const char *fname )
  30. {
  31.    printmsg(0,"Program aborting at line %d in file %s",
  32.               lineno, fname );
  33.    fputc('\a',stderr);
  34.    fcloseall();
  35.    exit(69);
  36. } /*bugout */
  37.